package com.qf.openapi.web.master.utils;

public class Constants {
    public static final String USER_AUTOLOGIN_TOKEN = "usertoken";

    //检验用户名是否存在
    public static final String USER_NAME_EXIST_ERROR_MSG = "用户名已存在";

    // 保存用户登录成功的session中的key
    public static final String USER_SESSION_KEY = "user";

    // 用户头像的上传路径
    public static final String UPLOAD_FILE_PATH = "/upload";

    // 定义通用的接口调用成功返回码
    public static final String COMMON_SUCCESS_CODE = "0";
    public static final String COMMON_SUCCESS_MSG = "接口调用成功";

    // 定义通用的接口调用失败的返回code
    public static final String COMMON_ERROR_CODE = "-1";
    public static final String COMMON_ERROR_MSG = "接口调用失败";

    // 用户模块验证码错误
    public static final String USER_LOGIN_CAPCHAR_ERROR_CODE= "-1001";
    public static final String USER_LOGIN_CAPCHAR_ERROR_MSG = "验证码错误";

    //用户添加模块错误
    public static final String USER_PASSWORD_ERROR_MSG = "密码不符合要求";
    public static final String USER_REGIST_ERROR_MSG = "服务器异常，注册失败";

    //用户删除模块错误
    public static final String USER_IDS_LENGHT_ERROR_MSG = "没有选中的对象";

    //下载文件模块
    public static final int EXPORT_PAGE_LIMIT = 5;
}
